angular.module('app').config(function ($stateProvider) {

    $stateProvider.state('app.device', {
        url         : '/device',
        label       : '设备信息',
        controller  : 'app.device',
        controllerAs: '$ctrl',
        templateUrl : 'view/app/device/device.html'
    });
}).controller('app.device', function ($ionicPlatform) {
    var ctrl = this;
    $ionicPlatform.ready(function () {
        ctrl.device = device;
    });
});